#pragma once

#include "svm.h"
#include <vector>

// #ifdef COMMON_EXPORTS
// #define COMMON_API  __declspec(dllexport)
// #else
// #define COMMON_API  __declspec(dllimport)
// #endif
#define COMMON_API

class COMMON_API SVMPredictor
{
public:
	SVMPredictor(void);
public:
	bool LoadModel( const char* modelFileName );
	double Predict( const std::vector<double>& input, double *prob_estimates = NULL );
public:
	~SVMPredictor(void);

private:
	struct svm_model* m_svmModel;
};
